package com.ruoyi.web.controller.manage;

import com.ruoyi.common.constant.HttpStatus;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.manage.domain.request.AppUserRequest;
import com.ruoyi.manage.service.IAppRegisterService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: wwy
 * @Date: 2021/1/5 14:21
 */
@Api("移动端注册")
@RestController
@RequestMapping("/api")
public class AppRegisterController extends BaseController {
    @Autowired
    private IAppRegisterService appRegisterService;
    /**
     * 移动端注册
     * 1.判断验证码是否合法
     * @param appUserRequest
     * @return
     */
    @ApiOperation("移动端注册接口")
    @PostMapping("/register")
    public AjaxResult register(@RequestBody AppUserRequest appUserRequest){
        return appRegisterService.register(appUserRequest);
    }

}
